package com.shanjupay.merchant.convert;


import com.shanjupay.merchant.api.dto.MerchantDTO;
import com.shanjupay.merchant.vo.MerchantRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/*
*
* 商户注册实体对象进行转化
* 1添加Mapper注解
* 2获取当前映射接口实例
* 3写对象转化的方法
* */
@Mapper
public interface MerchantRegisterConvert {
    //1获取接口实例
    MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);
    //2vo转化dto
    MerchantDTO voTodto(MerchantRegisterVO merchantRegisterVO);
    //3dto转化vo
    MerchantRegisterVO dtoTovo(MerchantDTO merchantDTO);
}
